173e617d9a86e658b2d731bbc4f44a4f3b5e58f1,lib/src/android/support/design/widget/CoordinatorLayout.java,CoordinatorLayout,offsetChildByInset,#View#Rect#number#,1325

Before Change


        final Rect rect = mTempRect3;
        if (behavior != null && behavior.getInsetDodgeRect(this, child, rect)) {
            // Make sure that it intersects the views bounds
            if (!rect.intersect(child.getLeft(), child.getTop(),
                    child.getRight(), child.getBottom())) {
                throw new IllegalArgumentException("Rect should intersect with child's bounds.");
            }
        } else {
            rect.set(child.getLeft(), child.getTop(), child.getRight(), child.getBottom());
        }

        if (rect.isEmpty()) {

After Change



        final Behavior behavior = lp.getBehavior();
        final Rect rect = mTempRect3;
        rect.setEmpty();
        final Rect bounds = mTempRect4;
        bounds.set(child.getLeft(), child.getTop(), child.getRight(), child.getBottom());

        if (behavior != null && behavior.getInsetDodgeRect(this, child, rect)) {
            // Make sure that the rect is within the view's bounds
            if (!bounds.contains(rect)) {
                throw new IllegalArgumentException("Rect should be within the child's bounds."
                        + " Rect:" + rect.toShortString() + " | Bounds:" + bounds.toShortString());
            }
        } else {
            rect.set(bounds);
        }

        if (rect.isEmpty()) {